import * as YvanUI from 'yvan-ui-wotu'

interface Ref {
    t1: YvanUI.Text,
    t2: YvanUI.Text
}

const React = YvanUI.React

export default class Simple2 extends YvanUI.Scope<void, Ref> {

    main = this.$$({
        check1: '',
        week: '',
        month: '',
    })

    onRender() {
        window['biz'] = this
    }

    vjson = {
        title: '组件-勾选',
        items: [
            {
                view: 'card',
                items: [
                    {
                        view: 'form',
                        debug: 'main',
                        items: [
                            {
                                view: 'switch',
                                label: '勾选1',
                                bind: 'main.check1',
                                on: 'A',
                                off: 'B'
                            }
                        ]
                    }
                ]
            }
        ]
    }
}